fixed error in api with new user