integrate register page with angular.js