Update CreatePostController.php

fixed a problem with input/request