finish phase 3
add post model validation and edit form