I solved the issue by changing the owner of the `/var/lib/sddm/.config/` directory recursively. The owner for the directory was root.
chown sddm:sddm /var/lib/sddm/.config -R
or
chown -R sddm:sddm /var/lib/sddm/.config