A 'User Principal Name' formated name will not match the content of the login attribute sAMAccountName and vice versa.
In order to keep the default login attribute definition and allow users to authenticate successfully, split the 'User Principal Name' (e.g., username@domain) into the user name and domain according to the position of '@'