Authentication fix

@andrewkatz