add check to empty string in to validate