Added edit action and forms/views for posts. Added validation.