Registration process mechanics implemented.

Todo: Use credentials in services, implement services.