new commit: input field value check added!