added promise in controllers/register.js
modified routes, user model username to id(wip)