Added the method to fetch form data