Fix bug in AuthenticatePerson that prevented authentication when user did not already have a cookie