added delete user, fixed some message bugs