registration creates association between user and the valid secret code