reading creds from stdin