is Input Valid

private fun isInputValid(field: String?): Boolean

Method to validate an input

Return

whether the field is valid or not as boolean

Parameters

field

: field value to check the validity