changes for new check password method