added validations to authentications model