Enable connect-flash

I enabled the connect-flash middleware and implemented it with passport to pass error messages to the client side, and then display them with alertify.