Added user/device validation

fixes #9