Fixed error login

made error login asinc