last update on controller add validation