add login check and links
add login check and links