resolving the URL issue in the form