#368 Added util method to ask user for credentials