Added logout function to project