fix validation bug
finish alert/message system