Error catching for trying to add a task with an empty field