Bug fix in login code

Added user_id field to the User model.