fix flash message
add validates on posts
fix category and post association