creating registration profile before calling create_profile