Redirect to login when trying to access profile, when logged out.

Redirect to login when trying to access profile, when logged out.