added register form, view and template.