registration almost working