validates presents of password