Fixes related to validation of 'asset' field while creating new device.
Fix for the 'logout' option in the user menu.
Code review fixes.
Merge pull request #1113 from xor-xor/ralph_1937

Fixes related to validation of 'asset' field while creating new device.