adding some validations and the iframe