added validation tests for user model