changed && to || for validation

logic error