Set the visibility options only if a user is logged in.

fixes gh-365
Ensure valid custom metabox before displaying.