Added authentication filter code.