deletes unused userFactory, fixed registerUser function on users controller
fixed the bug on routing in main.js file