Fixing bugs with auth.