The template file for registration was missing the confirm password field
So I just added it
<li class="form-field">
<label for="reg_password2"><?php esc_html_e( 'Confirm Password', 'learnpress' ); ?> <span class="required">*</span></label>
<input id ="reg_password2" name="reg_password2" type="password" placeholder="<?php esc_attr_e( 'Password', 'learnpress' ); ?>" autocomplete="off">
</li>
And it works