If they are one of the following, then please find the solution after the errors:
Error: Invalid user name
Usernames cannot:
(1) Contain characters such as ~ ! @ # $ ^ & ( ) + [ ] { } * ; : ' " . , % | < > ? / \ = `
(2) Begin or end with a space
The use of the Windows SMB (Server Message Block) protocol, also known as CIFS or Samba, places some restrictions on the use of special characters. These restrictions have historical reasons, but are still binding today. Usernames must not contain any of the above mentioned characters.
Error: invalid user password
A user password cannot begin or end with a space. Spaces are not legitimate characters at the beginning and end of a password. Maybe you inadvertently hit the space bar during password entry. Please reenter your password.
Error: invalid administrator password
Administrator password cannot begin or end with a space. Spaces are not legitimate characters at the beginning and end of a password. Maybe you inadvertently hit the space bar during password entry. Reenter your password.