more work on hooking up authentication

fix login route and controller
add auth and other node setup
change self to this
revert previous changes