[457] fixed a few bugs and added several more validations

Revision: 457
Author: rong.chen

Log Message: