Fix for login on Chrome