Fixed some fatality errors with Spring Security.