improved Validation error for hibernate