Added few tables in the db script and a change for validating the user.