Spring Security configuration with authentication manager and CustomUsernamePasswordAuthenticationFilter