fix login redirect for mobile