Added logging to hash and auth controller