Add validation to users and pins