Updated the servlet to require device key to save a device