Add login/logout templates, sort list