added file uploaded photo validation