retrieve_pattern now working too.  The next step is to make the program determine whether a username and pattern mathces one previously saved in the flash memory.