added regex to make sure bet is a valid number