validation error and image upload issues