source code of email registration and online chat