updated spring security config. added logging for additional debug info.