Initial shot at implementing the register function