fixing validation issues and missing image