Allow sign out. Sign user in after registering. Fix #2 and #3.