XWIKI-9171 : Make the "Template name" field mandatory

Added xvalidate for server side validations on template providers and
required class to name and template fields for livevalidation.