added create_user api function