Fixing error messages on create and config project pages. Also restricting the number of images to sample can not be bigger than the deployment size.