started working on the logout function and view