Fixed bug that back button takes to login page