adding validation test to user model