Fixed errors in validation rules