added throw exception if added task is empty or exceds 240 characters