fix registration controller, fix logging