validate and test of password method