added logout action
conditional logout link