Refactor validation and association tests for user model