Hostname update

Updated validate function to accommodate hash from nodeid.