Moved services login into services.js