Moved the userDetailsService bean to the service layer.