Fixed login view and added login route