Sample of how to implement spring security