use protect_from_forgery with: :null_session on API calls