add new version of validateCode and modifyPassword part.