new angular controller - register.js