Sign up, sign in, log out with templates