Im not sure, but it looks like the .form-group is in the same level as the form itselfe.
Is this true or just looks like this? The form-group should be tabbed inside of the form.
form(action='/admin/add-product', method='POST')
.form-group.row.my-3
label.col-sm-2.col-form-label(for='name') Product Name
.col-sm-10
input.form-control#name(type='text', name='name')
.form-group.row
.col-sm-10.offset-sm-2.my-3
input(type="submit" value="Submit").btn.btn-primary