Use addObject method.
Implement error page.