Create non interactive user task failed

Command used : useradd amar -s /sbin/nologin

And verified the user in /etc/passwd file