Added `next` functionality to the login view.