assignment 6, functionality: login, chat, form