Update User.pm

render_json was removed in Mojolicious 4.0