Register template done ish need error checking