Fixed servlet filter order and exception logging handling in securityFilter
Refactored logging and exception handling