fix login auth process