Added chat and Login functionality