added in basic message viewing and start of auth middleware