Updated sidebar, fixed user profiles

-Added a sidebar.php file which includes both the search bar and links
for post creation and profile editing
-Fixed user profiles
--The issue was with two variables both named $user. The user profile
that is currently being visited is now called $userProfile, which fixed
the issues.