conver invalid credentials case