added login/logout function to header