Adding validation to the composer