Fixed problems with auth.