custom directive for input validation