created users controller, added validations to user model