Create a pin code form with conditions