fixes login for mobiles