Check for user logged in all functions and sections