Added a second array for completed tasks.
Added client-side and server-side validations for posting new to-do items.