add form validation for photo upload form