Putting MAC verification inside password prompt loop