Register form with AngularJS, codeigniter and mysql