Save Box authentication to preference