simple authentication boilerplate for node applications