fixed bug in posts/create route