Added Registration page with validation.
Migrated ajax call to websocket