created validation and association tests for user model