Adds edit view for posts
Fixes edit post bug
Implements client-side validation for post title and body.