add textarea support to play the same as input

add validations as for input to textarea