updating code after watching solution videos
tweaked form
tweaked nav_bar
tweaked posts controller