improve back button action on login page