adds custom template to logout page, fixes login functionality