use Redirect(), it's equivalent here
add a clarifying comment and flatten the block slightly
implement dynamic login/logout links