Removed unused deferredLogin + Better handling of user cancelling the login or denying permissions.