Validates new task title and contact id