added validate statements to models