Added guest login and privilege check