added login form
refactoring chat ui