debugged chat client - server communication and added enter button to login and join modals