Wrapper function for readPassword