Add template for login page; fix dashboard logout