Finalized a lot of the sign in/out stuff.