added helper method to get a form instance with post data.