Login with popup,it doesn't manage login's errors :( . Fixed logout