Added validations to user model and created integration test to user(request spec)