Added update device functionality. Device creation functionalify now
fully working (with validation and etc).