Corrected Spring Security configuration to be more elegant.