fixed deleteuser-func