First attempt at registration functionality.