Fix-  user authentication / index redirection

Fixed the issue with incorrect redirection - the user_check script
needed to import session if not already done so, otherwise it was
unable to correctly check if the right user variables had been set.