added validations on the user model so that you can not the same username or email'