Wrote validations for user