Device creation now saves correct attributes and secret'
'