Added hasValue() to input and textarea