changed the logic in the profiles controller for how a profile page is displayed. also made test for the profiles page in the last commit, forgot to mention that