Login controller now uses the user model.