refactoring index page: 1) login form 2) chat text area