Added Spring Security integration, with login and logout capabilities.