modify the alert of register errors; add message input;