Back button for login works
after changing to $.ajax