authentication filter logs log exceptions in middleware