added required validator to pin model