fixed foreign key constraint error on user delete