fixed create form submit on clicking the photo button