implement new flow for registration