created model and controller
changed route: set /posts/index as app's root
added input capability for Post
added validation