Fix nil session[:redirect_url] on login