Update controllers.js

Fixed the register controller password attribute