Changed Document inheritance to EmbeddedDocument to avoid _id exception issue
Finished registration template