add javascript validation on location box