correct bug on post login: go to main page