fix bug in sign out in main page