added spec tests and two validations on todo_list model