little bit of validation on save hex button