create validations method for users model