finished a bit of validation