porting server side validation for creating site panel from forms to new controller function