Check for Name and Time input value