fix for login behavior on live server try 2