Add Spring security layer