Use validate() method of project object to check if it's correct
Fix variable naming.