Implemented control flow for log-in log-out links depending on whether the user is signed in.