Changes made in AuthenticateSpec