Fix bug #302 with signing the user out.