Fix to login issues for mobile