Spring security améliorations