Fixed bug in form validation for users.