Hook up the sign in form to spapp and add logged in state for top navigation as well.