passport authenticate and error flash