more style, some bug fixes, text validation
merging chat.jade