error trapping for forms.. few is changes