if the User is not specified the function 'user_info' redirects to index (if not logged in)