stage 1 and 2 completed, json input via text and json output to text, login checks in place.