added login as guest functioning.