fixed bug in add user api