Refactored Register Activity.

Changed click handlers and cleaned up code.