Partial implementation of logout button