Corrected issues with back button and login pages