fixed user authorization issue by fixing pins_controller