handling referer, redirect to referer after login