Made file input optional on edit