added first part of validation