Example of using spring security