Instead of checking project name you should check for location being null instead. ALso check validation on the location.  The projectName should not matter here.