fix to login redirect