add reset password api & duplicate status code on registration