Add function to validate and record a bid