Update services.js

updating after adding login and register functionality