Updated login example

Updated the example to work with express 3x and 4x