Fix mobile login

Fix #942 #950 

To fix the #942 I do tho login in two step one to login and one to reload the page because we can't have a 'Set-Cookie' and a redirect in the same request ...