Refactoring. Initially hiding error message on friend page. Redirecting to adviser in case when friend page is a user page