fix getting form data