sample templates with login and redirect page