change write.html form to POST and fix stories.py