Get location when submit button clicked