remove double slash from api login calls