templating register login and contact