Added check for user logged in before viewing group details.