Fixed error code for invalid password handler