getting basic submit function in line and alerting users if they didn't fill in both fields