Specific Password Login Help

So I created a custom login page asking for an email/password, and synced it to a dataset collection. The users entering the site will all get the password in advance, so I need to set up some script code to correlate they are putting in the correct phrase in order to enter the site. However, I am not privy to javascript that well so a little guidance would go a long way. Thanks in advance for the help.

When you say custom, do you mean Custom or Corvid as shown here?
https://support.wix.com/en/article/about-the-member-signup-form

As for passwords, that is for the user to create themselves, you can’t give anybody access with a prearranged password.
https://support.wix.com/en/article/request-pre-approving-site-members

If the password is going to be the same for all users then you can just use a password protected page and give that password to those who need it.
https://support.wix.com/en/article/password-protecting-a-specific-page-of-your-site

Thanks for the response, I know about the password protected page but I wanted to be able to customize the look and feel. There must be a way to input a script code like below and match it to the input IDs on the page.
http://www.javascriptkit.com/script/cut10.shtml

@sd9413
For that sort of validation look at what Wix already provide you with.
https://www.wix.com/corvid/example/custom-validations
https://support.wix.com/en/article/corvid-about-validating-user-input-with-code
https://www.wix.com/corvid/reference/$w.ValidatableMixin.html
https://www.wix.com/corvid/reference/$w.TextInput.html

@givemeawhisky Thanks, this code worked for me:

$w.onReady( **function**  () { 

$w( “#password” ).onCustomValidation( (value, reject) => {
if ( !value.endsWith( “insertpassword” ) ) {
reject( “password must be insert password” );
}
} );
});