Refactor user validations