Added code to remove the log out button after the user has successfully logged out