added tests for user model, added validations for user, updated tests that depend on user.