Rearranged authentication/authorization.