added data validations for users and restaurants