fixes for last login timestamp (new user), device edit, device delete; Implement update model for Device, DeviceClass class,