Getting credentials from stdin