added support for json message parsing; completed authentication with
username persistence