Added form validation to the login screen