User model bugs related to new rails migration fixed