register and login templates are merged into one template