Fix validations, format outputs and mask percentage inputs