Fix main link to be login if not loggedin