Flexible user registration and authentication module for Yii2