Register and validate code with sms method working.