Param form bugfix

Fixed the param form bug and make error handling a whole lot better