Fix data type and caching issues

Also stop users without ID from accessing update page, more generic error page.