Fixed a bug that prevented access to profile pages without logging in.