adding proper redirect_url after succesfull login