fix minor bugs on post create controller