fixed delete user function