login signup

Newly add login signup handlers and template.