add validations and table creation