added serial number validation in the database