fixed minor bug with after login redirect