Handled error when loggin in on somedi