created user resource, adds validations to user model