adding functionality to helper
Got validation in place on token field