Fix async bugs in signIn
Better handling of 401/403 errors