fix add user functionality