there is a comma missing after
'type': 'user'