Install And Configure SFTP - Failed

My SFTP Task got failed, did i missed anything?

grep sftp /etc/ssh/sshd_config
Subsystem sftp /usr/libexec/openssh/sftp-server
replaced with below lines:
Subsystem sftp internal-sftp

vi /etc/ssh/sshd_config
Match User jemes
ForceCommand internal-sftp
PasswordAuthentication yes
ChrootDirectory /var/www/opt
PermitTunnel no
AllowAgentForwarding no
AllowTcpForwarding no
X11Forwarding no

systemctl restart sshd.service

The name of the user is incorrect in the sshd_config ,ie, its ‘jemes’ instead of ‘james’. Did you also setup the shell for the user such that he wont be able to login ? because according to the error , he is still allowed to login . Can you show the contents of passwd entry for this user ?