updated the validation code to match changes in Bookstrap 1.0