Improved login and out process. Log out urls and messages now working like normal