Fixed-up authentication.