Code written to handle Keep Me Logged In Event and Logout Functionality.