device validation added