Add login methods

- change api route helper to not jsonify response