flash notification and redirect on correct login