Added form validation for login/create account.
Enhanced form validation