added registration partially working