Verifying that the user is connected before rendering the profile page

Verifying that the user is connected when rendering the profile page.

If the user is not connected, s-he is redirected to the login page.