added encrypted password validations and model