Added the security for the login and logout, modified the application context file