Modified the login check when refreshing all subscriptions
Set hostname as a variable