Removed $q from authService since it was no longer needed.