Added logging to registationscontroller