Added a couple line for when the user is not logged into wp-admin.