fixing error parser for customized errors
fixing bet validation