Enhanced form validation and implemented Authenticator