Refractored registration script to display pretty error messages.
Refractored registration script to display pretty error messages.

OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement,OpenLMIS/openlmis-stockmanagement