Updated base controller
Automated implementation for handling inputs and validations