fixed an issue upon hitting logout link