Added validation to all of the database models