redirect to intended url after login
add  code to sample ajax response