added validation and flash message Success
added some flash message checker on main layout page also added success flash message on create todo list
update todo controller to handel edit command