logout error in main page fixed