Corrected the passport-based authentication system. Resolves #45