Added login error. And change check user method.