Registration - rewrited from knockout to angularjs.