Fixed bug of required message in the login form.