simplified coding of validators
added css classes to default buttons