is
Input
Valid
Method to validate an input
Return
whether the field is valid or not as boolean
Parameters
field
: field value to check the validity