got the next function working in the login.html template