making auth possible with nodejs