fix validation in the controller