Make login and logout with spring-security