jsonify endpoints for signup/in