Fixed the issue of back button after login