Added check for valid bet amount