Fixed back navigation to the login screen.