Added device validatoins.