try Clearing the value first and then display error message then it will work. try in this format.

 

g_form.clearValue('u_name');

g_form.showFieldMsg('u_name', 'name should be lower case', 'info');