fixed some authentication