index and logout templates fixed