Updated with lib folder.
Updated the error and validation pg.