Added form view and some error handling.