Redirect on sign in, fix flash messages