validation added for Add todo