Username and password are only prompted when required

[#84406532]

Signed-off-by: Matthew McNew <mmcnew@pivotal.io>