Add associated content validation on posts
Change and add styling to flash messages
Remove unnecessary codes