Fixes post login redirect