link to "item" on a dynamic page if user logged in

hi, after user signup the custom form link code is working, when check if user logged in .then is red or without it just does not recognize the item function