Got login using promises correctly
Shifted register user logic into service