fixed componet login return err always nil bug