Move params checking to controller