Add newline to the end of files
Improve error callback on form save