created deleteuser function