cleanup
moving validate_and_send_message() to messages
working on sending a message - saving state
js tidy