php todo list as per phpacademy tutorial