Rewrite authentication class to remove the complicated checks.