better validation in Inline