Added encryption to session (user) cookie, and logout functionality