Where in CouchApp folder structure should I put validation function that it will be properly pushed with couchapp push command?
couchapp push
Check out the CouchApp documentation.
The correct file is ./validate_doc_update.js
./validate_doc_update.js