added credentials function to gather uname & pwd