Revert "logout functionality"

This reverts commit ec517be70c62c105ffe27b894fb6a5bd311d5052.
Revert "Revert "Logout functionality""

This reverts commit 2b4b4b2741645d6a390775b4b779756b93aaaa6a.
Revert "Logout functionality"

This reverts commit f5fccbe7ce04525e0ab5b95a6b44b120ff5ff41f.