Added login control, login view and User model.