fix redirect to login page for android app