fixed profile link crashbug

Found that link to profile when your not logged in crashed the server.