added form masking fuctionality