wrote tests for user validations