how can i create inline validation