fixed ensureSignedIn when user logged in

Tried the branch and this was the first issue I found.