Fixed a bug where an empty user was constantly added to DB
Added chat logging