updated user register api endpoint
added Template::getInstance() to help with IDE references