refactored out enterPostcode() function