added more validations to apgar