added registerController.js

add to validator.js and registerController.js