added header and validations