fix for login behavior on live server