Dropbear SSH closing connection when attempting to connect as a non Root User

first revert your change and remove -w flag. Than we would need to check why no other user (except root) can login. What happen if you login as root and try following

su - dietpi