Correct logout and profile links in template