fixes for foto uploading on validation errors