getting validation to work