Using AngularJS to build the registration form