user rest api fixes