Fixed redirect from profile when not logged in.