Updated Rails and added methods to User model