Added the validation code.
removed sqlite