i up graded the code because i don't have the choice command on my prompt so i wrote it this
@echo off
cls
set u=
set /p u=please enter user names:
set tx=please enter Password end it with !:
cls
:A
echo please enter user names: %u%
set /p p2=%tx%
set tx=%tx%^*
if %p2:~-1%==! goto B
set p=%p%%p2%
cls
goto A
:B
REM then the rest of the code