check if session cookie is set on login
remove another Promise overhead