disable submit when loading location