Implementation input text and null check