fix error in User model, all tests pass