Auth sample with passport - register - password encryption

If it could help, here is another version of auth system