Added check to not show user name if not loggedin