Change location input type, range check