Updated testcases, validation logic and added custom input stamps.