Persona login functions in the API