Passing model to customValidator to access other model attributes