Fixed issue with login message appearing every time a page was reloaded