Fix mobile login

Fix #942 #950