login link in registration page and logout link when user is logged in