Added onClick behaviors for Register and Cancel buttons.

Beginning to implement the database connections for mongo