fixed error message issue with login form.