took validations in user model for troubleshooting