adding the bool for isguest and implementing it.