patched bug that allows non-loggedin users to view user profiles

force user back to index.php if not loggedin