feat: add post create and update functionality and flash messages