Fixed a bug where the user was not getting transfered to login page on successful logout