corrected the authentication filter