refactor edit, add new post
Fix form handling
Add better error messages to form