adding device and user registration