check if input is empty while creating task