Split up login and target calls for better errors

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>
gofmt

Signed-off-by: Ruth Byers <rbyers@pivotallabs.com>