test 2 way authen register