created user resource, added validations to user model