add logout link and redirect