Added method for extracting form name from URL