fixed problem with login on ipad (again)