fix user login error, adding multiple instances of the same user