fix form data 500 for device logs

and fix table css for overflowing data
Merge pull request #3588 from dimagi/beautiful-device-logs

fix form data 500 for device logs