set vars to output
set vars to output
handle login failure