corrected for validation errors, added some table styling